﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using Model;

namespace Bussiness
{
    public class DepotManager
    {

        public static AssureMessage RegisterDepot(Depot depot)
        {
            DepotDataAccess.InsertNewDepot(depot);
            return new AssureMessage { state = true };

        }
        public static AssureMessage ModifyDepot(Depot depot)
        {
            DepotDataAccess.ModifyNewDepot(depot);
            return new AssureMessage { state = true };
        }
        public static List<Depot> GetListDepot()
        {
            return DepotDataAccess.GetDepots;
        }
    }
}
